import {
  memberlist
} from '../../../request/api'
const state = {
  memberlist: []
}
const getters = {
  getMember(state) {
    return state.memberlist
  }
}
const mutations = {
  REQ_MEMBERLIST(state, payload) {
    state.memberlist = payload
  }
}
const actions = {
  getMemberAction({
    commit
  }) {
    memberlist()
      .then(res => {
        //console.log(res, '会员列表');
        commit('REQ_MEMBERLIST', res.list)
      })
  }
}


export default {
  state,
  getters,
  mutations,
  actions,
  namespaced: true
}